<div id="headerAccountBox" class="general">
  <ul>
    <li>
      <% if user_signed_in? %>
        <%="#{t('lbl_signed_in_as')} #{current_user.email}. " %>
        <%= link_to "#{t('lbl_sign_out')}?", destroy_user_session_path %>
      <% else %>
        <%= link_to t('lbl_sign_in'), new_user_session_path %>
      <% end %>
    </li><li>|</li>
    <li>
      <%#=  link_to(image_tag("Spain.ico", :size => "20x20", :border=>0), APP_CONFIG[:spanish_website_url]) %>
      <%#=  link_to(image_tag("eeuu.ico", :size => "18x18", :border=>0), APP_CONFIG[:english_website_url]) %>
      <%=  link_to(image_tag("spain_1.jpg", :size => "18x15", :border=>0), get_website_url('es') ) %>
      <%=  link_to(image_tag("eeuu_1.jpg", :size => "18x15", :border=>0), get_website_url('en')) %>
    </li>
  </ul>
</div>

<div id="headerLogo">
  <%=  image_tag("topLogo.png") %>
</div>

<div id="headerSearch">
  <% form_tag catalogs_free_text_search_path, :method => 'get' do %>
    <div id="headerSearchOne">
      <%= text_field_tag :free_text_search, @search_free_text, {:class => "search"} %>
      <%= submit_tag t('btn_free_text_search'), :name => nil, :class => "go" %>
    </div>
      <%= link_to t('advanced_search_title'), catalogs_advanced_search_view_path %>
      <!--a href='#' class='basic'><%#=t('advanced_search_title')%></a-->
  <% end %>
</div>

<%= javascript_include_tag 'menu_horizontal'  %>
<%= stylesheet_link_tag 'menu_horizontal'  %>

<div id="dest">
  <script type="text/javascript">
      function getElementsByTagName(tag){ return document.getElementsByTagName(tag); }
  </script>
  <script type="text/javascript">
    var xmlText= <%="'#{get_menu_user_to_xml}'"%>;
  </script>
  <script type="text/javascript">document.observe('dom:loaded',function(event){ crearMenu();});</script>
</div>

<!--div id="basic-modal-content-advanced-search" style="display:none;">
  <%#= render :partial=>'catalogs/advanced_search' %>
</div-->



